//
//  LoginViewController.h
//
//	登录页面
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>

@class CTextField;
@class RegisterViewController;
@class FindPasswordViewController;
@class CardSettingViewController;


@interface LoginViewController : UIViewController <UITextFieldDelegate>
{
	CTextField*		userName;
	CTextField*		password;
	UIButton*		loginBtn;
	UIButton*		registerBtn;
	UIButton*		savePwdBtn;
	UIButton*		findPwdBtn;
	UIView*			bgPanel;
	BOOL			bSavePwd;
	
	RegisterViewController*	registerViewController;
	FindPasswordViewController* findPasswordViewController;
	CardSettingViewController*	cardSettingViewController;
}

@property (nonatomic, retain) IBOutlet CTextField*	userName;
@property (nonatomic, retain) IBOutlet CTextField*	password;
@property (nonatomic, retain) IBOutlet UIButton*	loginBtn;
@property (nonatomic, retain) IBOutlet UIButton*	registerBtn;
@property (nonatomic, retain) IBOutlet UIButton*	savePwdBtn;
@property (nonatomic, retain) IBOutlet UIButton*	findPwdBtn;
@property (nonatomic, retain) IBOutlet UIView*		bgPanel;


//通过xib资源初始化视图控制器
//
+ (LoginViewController*) InitFromXib;


//响应文本框开始编辑
//
- (IBAction) OnEditBegin: (id) sender;


//响应文本框编辑完毕
//
- (IBAction) OnEditEnd: (id) sender;


//响应"保存密码"按钮
//
- (IBAction) OnClick_SavaPwd: (id) sender;


//响应"找回密码"按钮
//
- (IBAction) OnClick_FindPwd: (id) sender;


//响应"登录"按钮
//
- (IBAction) OnClick_Login: (id) sender;


//响应"注册"按钮
//
- (IBAction) OnClick_Register: (id) sender;

@end
